from django.urls import path, include
from .views.auth_apis import password_login  # 导入新视图
from .views.bussiness_apis import get_ai_patients, get_ai_response  # 导入新视图
from rest_framework_simplejwt.views import TokenRefreshView  # 新增导入

# urlpatterns = [
#     path('auth/login/', password_login, name='password_login'),  # 添加密码登录路由
# ]

urlpatterns = [
    path('auth/login/', password_login, name='api_login'),
    path('auth/refresh/', TokenRefreshView.as_view(), name='token_refresh'),  # 新增刷新路由
    path('get_ai_patients/', get_ai_patients, name='api_get_ai_patients'),
    path('get_ai_response/', get_ai_response, name='api_get_ai_response'),
]